﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _011_怪物的性价比
{
    class Monster
    {
        private int HP;
        private int attack;
        private int defense;
        private int money;
        public int bicycle;

      

        public Monster(int Hp,int attack,int defense,int money)
        {
            this.HP = Hp;
            this.attack = attack;
            this.defense = defense;
            this.money = money;
        }

        public int Bicycle()
        {
             bicycle = money / HP + attack + defense;
            return bicycle;
        }
    }
}
